package com.yanq.liancar.address_selection.utils;
/*
 *  @创建者     liyan
 *  @创建时间   2018/11/6  10:09
 *  @描述       ${TODO}
 */


public class StringUtils {
    /**

     * 提取出城市或者县

     * @param city

     * @param district

     * @return

     */

    public static String extractLocation(final String city, final String district){

        return district.contains("县") ? district.substring(0, district.length() - 1) : city.substring(0, city.length() - 1);

    }
}
